﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MandalaySoft.Common;

namespace SIMS.BL
{
    public class MyUserSchool
    {
        public int UserSchoolID { get; set; }
        public int UserID { get; set; }
        public int SchoolID { get; set; }

        public DateTime StartDate { get; set; }
        public DateTime DropDate { get; set; }

        public int CreatedBy { get; set; }
        public string CreatedByName { get; set; }
        public DateTime CreatedDate { get; set; }

        public int ModifiedBy { get; set; }
        public string ModifiedByName { get; set; }
        public DateTime ModifiedDate { get; set; }

        public MyError Error { get; set; }

        public MyUserSchool()
        {
            ClearFields();
        }

        private void ClearFields()
        {
            UserSchoolID = -1;
            UserID = -1;
            SchoolID = -1;
            StartDate = new DateTime(1900, 1, 1);
            DropDate = new DateTime(1900, 1, 1);
            CreatedBy = -1;
            CreatedByName = string.Empty;
            CreatedDate = new DateTime(1900, 1, 1);
            ModifiedBy = -1;
            ModifiedByName = string.Empty;
            ModifiedDate = new DateTime(1900, 1, 1);
            Error = new MyError();
        }
    }
}
